//
//  HistoryGenericVariable.h
//  LogAnything
//
//  Created by Daniel Braun on 19/06/07.
//  Copyright 2007 __MyCompanyName__. All rights reserved.
//

#import <Cocoa/Cocoa.h>
#import "HistoryVariable.h"

#import "HistoricVariableBase.h"




@interface HistoEntryGen : HistoEntryBase {
	@public
	NSMutableDictionary *_values;
}

@end



@interface HistoryGenericVariable : HistoricVariableBase {
	NSMutableDictionary *knownKeys;
}

- (void) setValue:(id)value forKey:(id)key;
- (void) setValue:(id)value forKey:(id)key atDate:(NSDate *)d;

- (void) setAllValues:(NSDictionary*)d atDate:(NSDate *)d;

- (id) valueForKey:(id)ey atDate:(NSDate *)date;

- (NSDictionary *) allValuesAtDate:(NSDate *)date maxDateDelta:(NSTimeInterval)md;

// assuming value is a number

//- (NSNumber *) interpolatedValueForKey:(id)k atDate:(NSDate *)date;

//- (NSNumber *) averageValueForKey:(id)k between:(NSDate *)d1 and:(NSDate *)d2;


@end
